from pathlib import Path
from PIL import Image
class Step():
    def __init__(self,step_name):
        self.step_name = step_name

    def save_img(self,img:Image.Image,generateUuid):
        save_path = Path(f"./output/{self.step_name}/{self.step_name}_{generateUuid}.jpg")
        if Path.exists(save_path)==False:
            save_path.parent.mkdir(parents=True, exist_ok=True)
        img.save(save_path)

